﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Campus.Entities
{
    [Table("Cuotas")]
    public class Cuota
    {
        [Required(ErrorMessage = "El {0} es requerido")]
        public double Valor
        {
            get;
            set;
        }

        [Required(ErrorMessage = "El {0} es requerido")]
        public int ActividadId
        {
            get;
            set;

        }

        [ForeignKey("ActividadId")]
        public virtual Actividad Actividad
        {
            get;
            set;
        }

        public int CuotaId
        {
            get;

            set;            
        }
    }
}
